package java_objects.this_pointer;

public class OuterClass {
	void test(){
		System.out.println("test() in main class");
	}
	class Inner {
		void test(){
			System.out.println("test() in inner class");
		}
		void execute () {
			test(); // calling Inner class method
			OuterClass.this.test(); // How to reference Outer from Inner
		}
	}
	public static void main(String args[]) {
		// Calling Inner class method from Outer
		new OuterClass().new Inner().execute();
	}
}
